home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Database / DBTVTest / ReadMe < prev    next >
Text File  |  1995-06-12  |  2KB  |  54 lines

  1.  
  2. This is what Mike Ferris posted to the next-prog mailing list some time ago. As he never uploaded it to an archive server, I do that now for him.
  3.  
  4. ---
  5.  
  6. == Andreas == ah@fml.tuwien.ac.at
  7. Wir entschuldigen uns fuer die Strapazen (Douglas Adams). NeXTmail accepted.
  8.  
  9.  
  10.  
  11. From: Mike Ferris <mferris@trirex.com>
  12. Date: Mon, 28 Dec 92 10:50:57 -0500
  13. To: next-prog@cpac.washington.edu (Next Programmers)
  14. Subject: Sample of how to use DBTableView outside of DBKit
  15. Reply-To: mferris@trirex.com (Mike Ferris)
  16.  
  17. Hi,
  18.  
  19. I have seen a few people mention that a DBTableView is good for more than DBKit stuff.  Some have asked how to use a DBTableView without DBKit.  I asked myself this question too, and since it wasn't really obvious, I thought you'd like to see the little program I wrote to prove it could be done and teach myself how to do it.
  20.  
  21. Here it is.
  22.  
  23. DBTVTest
  24.  
  25. This is a complete 3.0 project directory.
  26.  
  27. The trick seems to be that you need properties to assign to at least one axis of your table.  The properties must conform to the DBPOroperties protocol.  The class SimpleProperty handles that.  Then you need an object to act as the DataSource of the table.  It must conform to the informal DBTableDataSources protocol.  The Tester class handles that.
  28.  
  29. Have fun.
  30.  
  31. ____________________________________________________________
  32. Mike Ferris                 Everybody understands Mickey Mouse
  33. mferris@trirex.com          Few understand Herman Hesse
  34. Trirex Systems, Inc.        Only a handful understood Einstein
  35. (212) 856-9000              And nobody understood Emperor Norton
  36.  
  37.  
  38. From: William Shipley <wjs@omnigroup.com>
  39. Date: Mon, 28 Dec 92 17:12:37 -0800
  40. To: next-prog@cpac.washington.edu (Next Programmers)
  41. Subject: Re: Sample of how to use DBTableView outside of DBKit
  42.  
  43. It's my understanding that TableView doesn't use the DBProperties protocol, that the identifier you pass it for each row (or column) is simply an opaque 32-bit entity that's used only to distinguish the rows (or columns).
  44.  
  45. In the case of DBModule, the column identifiers it uses are DBProperties, but TableView doesn't care what they are, since it never sends any messages to them.
  46.  
  47. Thus, your SimpleProperty class is unneccesary.
  48.  
  49. -William Shipley
  50. The Omni Group
  51. DBKit consulting
  52.  
  53.